//
import Cookies from 'js-cookie'

export default {
    setToken(token) {
        window.localStorage.setItem('jwt_token', token)
    },
    getToken() {
        return window.localStorage.getItem('jwt_token')
    },
    removeToken() {
        window.localStorage.removeItem('jwt_token')
        Cookies.remove('auth_id')
    },
    setAuthId(authId, expires_in = 1) {
        Cookies.set('auth_id', authId, {
            expires: expires_in
        })
    }
}
